package com.cskaoyan.controller.wx;

import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.vo.WxHomeIndexVO;
import com.cskaoyan.service.WxHomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 小程序首页界面展示
 * \* User: 余雨健
 * \* Date: 2022/10/14
 * \* Time: 14:58
 **/
@RestController
@RequestMapping("wx/home")
public class WxHomeController {
    @Autowired
    WxHomeService wxHomeService;

    /**
     *@小程序首页页面展示
     *@author yuyujian
     *@Date 2022/10/15
     *@Time 14:27
     */
    @RequestMapping("index")
    public BaseRespVo<WxHomeIndexVO> index(){
        WxHomeIndexVO wxHomeIndexVO = wxHomeService.returnIndexOrderList();
        return BaseRespVo.ok(wxHomeIndexVO,"成功");
    }


}
